package com.nengchuan.eic.nceconomy.entity.vo;

import com.nengchuan.eic.nceconomy.constant.CategoryEnum;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * 功能描述:
 *
 * @Author: liurui
 * @Date: 2020/5/28 0028 下午 3:53
 */
@Data
public class IndexSearchResultVO {

    private Content content;
    private List<Properties> properties;

    @Data
    public static class Content{
        private List<HeadLineVO> headLine;
        private List<Map<String,String>> content;
    }

    @Data
    public static class Properties{
        private String projectName;
        private String category;
        private String sheetName;

        public Properties(IndexSearchVO vo){
            this.category= CategoryEnum.getTextByCode(vo.getCategoryIndex());
            this.sheetName=vo.getSheetName();
            this.projectName=vo.getProjectName();
        }
    }

}
